<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"      
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 
<h:head></h:head> 
<body> 

	<h:form>
		<center>
		<rich:panel>
	        <f:facet name="header"><center style="font-size: medium">Registro de Instituciones Bancarias</center></f:facet>		
				
			<h:panelGrid columns="3" cellpadding="5">	
				<h:outputLabel value="Nombre Banco"/>
				<h:inputText id ="txtNombre" value="#{gestionBancosBean.banco.bco_nombre}">
					<f:validateRequired/>
				</h:inputText>
				<h:messages for="txtNombre" style="color:red"/>
				
				<h:outputLabel value="Codigo Banco" />
				<h:inputText id="txtCodigo" value="#{gestionBancosBean.banco.bco_codigo}">
					<f:validateRequired/>
				</h:inputText>
				<h:messages for="txtCodigo" style="color:red"/>
				
				<h:outputLabel value="URL WebService Transferencias" />
				<h:inputText id="txtUrl" value="#{gestionBancosBean.banco.bco_WStransfer}">
					<f:validateRequired/> 
				</h:inputText>			
				<h:messages for="txtUrl" style="color:red"/>				
			</h:panelGrid>	
			
			<p:growl id="mensaje" showDetail="true" sticky="4000"/>
			<h:commandButton value="Registrar" action="#{gestionBancosBean.guardar()}" >
					<f:ajax execute = "@form" render="@form"/>
			</h:commandButton>			
			
		</rich:panel>
		 </center>	        
	
	</h:form>

</body> 
</html>
